package com.lian.hope.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Builder
@Data
@Schema(description = "项目VO")
public class ProjectsVO implements Serializable {
    @Schema(description = "项目id")
    private Long id;
    @Schema(description = "项目昵称")
    private String projectName;
    @Schema(description = "项目图片路径")
    private String imgUrl;
    @Schema(description = "项目简介")
    private String brief;
    @Schema(description = "项目实施计划")
    private String implementationPlan;
    @Schema(description = "项目详情html格式")
    private String projectDescHtml;
    @Schema(description = "项目状态（0：未开始，1：进行中，2：已完成）")
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "项目创建时间")
    private LocalDateTime createTime;
    @Schema(description = "目标筹集金额")
    private BigDecimal targetAmount;
    @Schema(description = "已筹集金额")
    private BigDecimal raisedAmount;

}
